<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 
        push 向尾部添加
        unshift  从头部添加
     -->
    <script>
        var arr=[1,2,3,4]
        arr.unshift(0)
        console.log(arr);

        var b=[1,2,3,4]
        var a = [5,6,7,8,9]
        a.unshift(...b)
        console.log(a);
    </script>
</body>
</html>